package com.fulihui.wgj.consumer.service;

import com.fulihui.wgj.consumer.entity.WxUserInfoExp;
import com.fulihui.wgj.facade.dto.WxUserInfoDTO;
import com.fulihui.wgj.facade.msg.UserMsg;

import java.util.List;

/**
 * @author: LiuJie
 * @version: 2018/7/2 18:28
 * @description:
 */
public interface UserService {
    /**
     * 批量获取用户信息
     * @param userMsg
     * @return
     */
    List<WxUserInfoDTO> getUserInfo(UserMsg userMsg);

    /**
     * 获取单个人的用户信息
     * @param appid
     * @param openId
     * @return
     */
    WxUserInfoExp getUserInfo(String appid, String openId);

    /**
     * upsert to kudu
     * @param users
     */
    void upsertUsers(List<WxUserInfoDTO> users);

    /**
     * delete from kudu
     * @param appid
     * @param openId
     */
    void delUser(String appid, String openId);
}
